package io.github.wslxm.springbootplus2.manage.sys.model.dto;

import io.github.wslxm.springbootplus2.core.base.model.Convert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

/**
 * banner表
 * <p>
 *  ::本代码由[兮家小二]提供的代码生成器生成,如有问题,请手动修改 ::作者CSDN:https://blog.csdn.net/qq_41463655 
 * </p>
 * @author wangsong
 * @email 1720696548@qq.com
 * @date 2020-08-23 23:14:01
 */
@Data
@ToString(callSuper = true)
@Schema(name = "SysBannerDTO 对象", description = "banner表")
public class SysBannerDTO extends Convert {

    private static final long serialVersionUID = 0L;

    @Schema(title = "banner位置(字典code) ")
    @Range(min = 0, max = 99, message = "sys.banner.position.Range")
    private Integer position;

    @Schema(title = "banner标题 ")
    @Length(min = 1, max = 128, message = "sys.banner.name.Length")
    private String name;

    @Schema(title = "banner描叙 ")
    @Length(max = 256, message = "sys.banner.desc.Length")
    private String desc;

    @Schema(title = "banner图片 ")
    @Length(min = 1, max = 256, message = "sys.banner.imgUrl.Length")
    private String imgUrl;

    @Schema(title = "banner排序 ")
    @Range(min = 0, max = 2147483647L, message = "sys.banner.sort.Range")
    private Integer sort;

    @Schema(title = "banner禁用(0-启用 1-禁用) ")
    @Range(min = 0, max = 9L, message = "sys.banner.disable.Range")
    private Integer disable;

    @Schema(title = "是否跳转(0-无  1-内部链接 2-外部链接) ")
    @Range(min = 0, max = 9L, message = "sys.banner.isSkip.Range")
    private Integer isSkip;

    @Schema(title = "跳转地址url(地址直接添加或字典表配置) ")
    @Length(max = 256, message = "sys.banner.skipUrl.Length")
    private String skipUrl;

    @Schema(title = "扩展字段1")
    private String ext1;

    @Schema(title = "扩展字段2")
    private String ext2;

    @Schema(title = "扩展字段3")
    private String ext3;

}

